package lab02.test14;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/25.
 */
public class Rectangle {
    double length;
    double width;

    //构造函数
    Rectangle(double length,double width){
        this.length = length;
        this.width = width;}
    //方法
    public double getArea(){
        double area = length * width;
        return area;
    }
}
